import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './../src/assets/css/base.scss'
import VConsole from 'vconsole';
import Fastclick from 'fastclick' // 解决：
Fastclick.attach(document.body);  // 移动端100~300ms的点击事件延迟问题

import Loading from './plugin/loading/index'
Vue.use(Loading, {
  title: "努力加载中..."
})

import VueLazyload from 'vue-lazyload'
Vue.use(VueLazyload, {
  preLoad: 1.3,
  // 可以通过配置loading来设置图片还未加载好之前的占位图片
  loading: require('./assets/images/loading.png'),
  attempt: 1
})
Vue.config.productionTip = false

const vconsole = new VConsole()
Vue.use(vconsole)
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
